import request from '@/utils/request'

// 查询合作加盟表列表
export function listCooperation(query) {
  return request({
    url: '/cooperation/cooperation/list',
    method: 'get',
    params: query
  })
}

// 查询合作加盟表详细
export function getCooperation(id) {
  return request({
    url: '/cooperation/cooperation/' + id,
    method: 'get'
  })
}

// 新增合作加盟表
export function addCooperation(data) {
  return request({
    url: '/cooperation/cooperation',
    method: 'post',
    data: data
  })
}

// 修改合作加盟表
export function updateCooperation(data) {
  return request({
    url: '/cooperation/cooperation',
    method: 'put',
    data: data
  })
}

// 删除合作加盟表
export function delCooperation(id) {
  return request({
    url: '/cooperation/cooperation/' + id,
    method: 'delete'
  })
}
